package com.ruoyi.oa.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.aftserv.domain.ManageGradeClass;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生对象 manage_student
 * 
 * @author 张艳羽
 * @date 2024-08-20
 */
public class ManageStudent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 学号 */
    @Excel(name = "学号")
    private String stuno;

    /** 学生姓名 */
    @Excel(name = "学生姓名")
    private String stuname;

    /** 学生性别（0男 1女 2未知） */
    @Excel(name = "学生性别", readConverterExp = "0=男,1=女,2=未知")
    private String stusex;

    /** 手机号码 */
    private String phonenumber;

    /** 学生班级 */
    @Excel(name = "学生班级")
    private String classid;

    @Excel(name = "班级", targetAttr = "classCode", type = Excel.Type.EXPORT)
    private ManageGradeClass gradeClass;

    /** 用户openId */
    @Excel(name = "用户openId")
    private String openId;

    /** 用户微信昵称 */
    @Excel(name = "用户微信昵称")
    private String nickName;

    /** 用户微信头像地址 */
    @Excel(name = "用户微信头像地址")
    private String avatarUrl;

    /** 第一次登录时间 */
    private Date firstLoginTime;

    /** 最后一次登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后一次登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLoginTime;

    /** 帐号状态（0停用 1正常） */
    @Excel(name = "帐号状态", readConverterExp = "0=停用,1=正常")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStuno(String stuno) 
    {
        this.stuno = stuno;
    }

    public String getStuno() 
    {
        return stuno;
    }
    public void setStuname(String stuname) 
    {
        this.stuname = stuname;
    }

    public String getStuname() 
    {
        return stuname;
    }
    public void setStusex(String stusex) 
    {
        this.stusex = stusex;
    }

    public String getStusex() 
    {
        return stusex;
    }
    public void setPhonenumber(String phonenumber) 
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber() 
    {
        return phonenumber;
    }
    public void setClassid(String classid) 
    {
        this.classid = classid;
    }

    public String getClassid() 
    {
        return classid;
    }

    public ManageGradeClass getGradeClass() {
        return gradeClass;
    }

    public void setGradeClass(ManageGradeClass gradeClass) {
        this.gradeClass = gradeClass;
    }

    public void setOpenId(String openId)
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }
    public void setFirstLoginTime(Date firstLoginTime) 
    {
        this.firstLoginTime = firstLoginTime;
    }

    public Date getFirstLoginTime() 
    {
        return firstLoginTime;
    }
    public void setLastLoginTime(Date lastLoginTime) 
    {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime() 
    {
        return lastLoginTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("stuno", getStuno())
            .append("stuname", getStuname())
            .append("stusex", getStusex())
            .append("phonenumber", getPhonenumber())
            .append("classid", getClassid())
            .append("openId", getOpenId())
            .append("nickName", getNickName())
            .append("avatarUrl", getAvatarUrl())
            .append("firstLoginTime", getFirstLoginTime())
            .append("lastLoginTime", getLastLoginTime())
            .append("status", getStatus())
            .toString();
    }
}
